import { createApp } from 'vue';
import { createPinia } from 'pinia';
import { createPersistedState } from 'pinia-plugin-persistedstate';
import i18n from './locale';
import directive from '@/directive';
import setupPlugins from '@/plugins';

import './styles/element/index.scss'
import './styles/index.scss';
import ElementPlus from 'element-plus'

import router from './router';
import App from './App.vue';
import 'virtual:uno.css';
// import service from '@/utils/axios/axios-service'
console.log('Main环境配置: ', import.meta.env)
const pinia = createPinia();
pinia.use(createPersistedState({
  key: id => `__persisted__${id}`
}));
const app = createApp(App);

app.use(pinia);
app.use(ElementPlus)
app.use(router);
app.use(i18n);
app.use(directive);
app.use(setupPlugins);

app.mount('#app');
